package com.dd.cloud.user.entity.ca;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.dd.cloud.common.constants.RegularConstants;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 医生CA账号信息
 * </p>
 *
 * @author czg
 * @since 2024-01-22
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "医生CA账号信息")
public class CaDoctor implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 数据表说明:后台管理用户表
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 账号
     */
    @Column(length = RegularConstants.Verify.MAX_NAME, comment = "账号")
    private String account;

    /**
     * 手机号
     */
    @Column(length = RegularConstants.Verify.MAX_NAME, comment = "手机号")
    private String phone;

    /**
     * 身份证号
     */
    @Column(length = RegularConstants.Verify.MAX_PWD, comment = "身份证号")
    private String idCard;

    /**
     * 真实姓名
     */
    @Column(length = RegularConstants.Verify.MAX_NAME, comment = "真实姓名")
    private String name;

    /**
     * 签约密码, 明文
     */
    @Column(length = RegularConstants.Verify.MAX_PWD, comment = "签约密码, 明文")
    private String signPwd;

    /**
     * 实名认证流水号
     */
    @Column(length = RegularConstants.Verify.MAX_DESC, comment = "实名认证流水号")
    private String serialNo;

    /**
     * 默认印章编号
     */
    @Column(length = RegularConstants.Verify.MAX_DESC, comment = "默认印章编号")
    private String sealNo;

    /**
     * 默认印章url
     */
    @Column(length = RegularConstants.Verify.Content_DESC, comment = "默认印章url")
    private String sealUrl;

    /**
     * 状态 1正常使用 -1删除 3禁用
     */
    @Column(comment = "状态 1正常使用 -1删除 3禁用 2未上传监管平台")
    private Integer status;

    /**
     * 状态 1正常使用 -1删除 3禁用
     */
    @Column(comment = "类型 0未认证 1已认证成功 2已添加个人用户")
    private Integer type;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间", defaultValue = "now()")
    private LocalDateTime createDate;

    /**
     * 创建人id
     */
    @Column(comment = "创建人id")
    private Integer createId;


}
